//
//  ZHDrawerMenuCell.m
//  ZHS_UCDemo
//
//  Created by Emrys on 2016/11/11.
//  Copyright © 2016年 Emrys. All rights reserved.
//

#import "ZHDrawerMenuCell.h"

#import "ZHImageView.h"
#import "ZHLabel.h"

#import "ZHDrawerMenuModel.h"

@interface ZHDrawerMenuCell ()

@property (weak, nonatomic) IBOutlet ZHImageView *menuImageView;
@property (weak, nonatomic) IBOutlet ZHLabel *menuTitleLabel;

@end

@implementation ZHDrawerMenuCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (void)setMenuModel:(ZHDrawerMenuModel *)menuModel {
    _menuModel = menuModel;
    
    self.menuImageView.image = [UIImage imageNamed:menuModel.menuImage];
    self.menuTitleLabel.text = menuModel.menuTitle;
}

@end
